@RunWith(JMock.class)public class ExampleJMockClass{	static INopEngineRep rep;	@BeforeClass	public static void beforeAllTests(){		...		//init the manager of all mock objects		Mockery ctx = new JUnit4Mockery();		//create a mock object for rep		rep = ctx.mock(INopEngineRep.class);		final UserSession us = getSession(2);		final UserSession us1 = getSession(1);		final NopProject p = getProject(1);		p.setLastUpdate(us1.getEndTime());		//set the expectations (simulations) of rep (mock object)		ctx.checking(new Expectations(){{			//allow to call getUserSessionAfter			allowing (rep).getUserSessionAfter(p.getLastUpdate()); 			// and return us			will(returnValue(us));			//allow to class getProjectById with the input 1 			allowing (rep).getProjectById(1);			//and return p			will(returnValue(p));			...		}});	}}